package d03_Callable;

import java.util.concurrent.Callable;

public class MyCallable implements Callable<Integer> {
    @Override
    public Integer call() throws Exception {
        int sum=2;
        for (int i = 4; i < 100; i+=2) {
            sum+=i;
            System.out.println("子线程1：累加偶数。。。。。。"+i);
        }
        return sum;
    }
}
